fixed an error where the default password location was tried to be read instead of the location from the argument