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