Improved normalize file sep
Added trim trailing slash