Added tests for abs path on manifest
improved replace regex