fixed path and naming problems
added phar.readonly env check
fixed variable naming
updated config file
changed ../.. to dirname