check for files before inserting require into them
Merge pull request #6 from vinsol/change-install-file

check for files before inserting require into them