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