Use path module to find resource extension
Add srv --port flag