[PATCH v3 07/14] scripts: Use shell expansion to get partition path