After resolving file path ensure it does not end with /