Rearranged shell script commands to fix a file-transfer plugin failing to install bug