check that __file__ is not pyc which cannot be executed