Use path variable correctly