fixed issue for deeper directory layers and added basic auth for github