Removed extraneous imports
Fixed permissions
Added shebang to build.d