changes to use standard path, also make php interpreter happy on debian