Add references to version number and fix a mkdir problem