Fixed Bug: 1042112

I have tried to incorporate the feature mentioned on bugzilla about taking password argument from a file . 
There's no need to store the `file_path` variable, we can just use the value directly. Also, I suspect it's important that the path is at the beginning of the args so that any options passed on the command line will take priority.