Fixed problem with ~ and fully qualified paths