only use -P if PORT is set, fixes #4