change test for dir to file

since the pointer is no to the firefox executable