Fix severe bug with ~ in directory path