Fix -p,--platform not working if more than 4 characters