Save given path to the document root correctly