Directory check and stop execution if false, remove unneeded includes