Set initial path to directory.