Slight change to file checking to account for cwd() variances