removed realpath from path construction as it doesnt work for non existant paths