Merge pull request #424 from juergenhoetzel/master

Fix build for 4.2.2
Fix invalid DIR parameter passed to `read-file-name'

Also ensure that the project file exists.