realpath() returns false if .versions cache file doesn't exist yet
Override default target_dir when www option is set
Add mysql credentials to available options
Replace sed with some OS agnostic PHP logic