Removing last '/' from path