Trimming path on interactive prompt