Implemented basename check for 'resources' script... whoops!