Removed assign by reference in path() 

rtrim() returns a string and the variable $path was being set to said string by reference. This is throws: Runtime Notice - Only variables should be assigned by reference