Prevent NPE
Allow configuring the path's deepth via system's property