fixed fileAt to regognise File on path