Allow support for site in sub directory
updated filed based on improved path handling