fix for rake dist not working when build directory is missing