Fix proj version and support for out of source builddir

* Old proj filename returns 404
* Build failed for out of source builddir
* Strip some whitespaces at EOL