in reply to file check not working

A bit on the outside of this problem, but I highly recommend using File::Spec for building pathnames. It takes a lot of screwyness out of it.