Add support for subdirectory deployment