update rake build to create directory if it doesn't exist