Resolve issues with logic that checks if compilation should occur