Prevent Errors in Frozen Apps

Frozen Applications do not have __file__ attribute causing exceptions here.  Fixed.