[PATCH v4 06/13] scripts: Use shell expansion to get partition path