Added optional prefix setting to the script (when running e.g. non-debug builds).