Added command GetPathVariable for supporting clean URLs, fixed bug with unclosed Input stream