fixed relative path bug with subprocess