Check for file existence in directory instead of filename only