Fixed a bug with not setting project dir correctly.