Path variable ugly hack