platform.sh on Linux attempts to put regDir in /usr/local, which requires root

Fixes platform.sh crash on Linux due to attempt to put `regDir` in `/usr/local`, which requires root.