Fixing 'serve' command to accept file or folder