fixes file path checking