Strip the server port when create repo dir on external stroage