Fixed an issue where an application folder was treated as a build folder. Fixed an issue with the build state when log files made the build folder dirty.