Compute the absolute path to the public directory.
Added example
Added example in readme