clean path variable