Fixed loading of paths beginning with ~ (home directory).