Updating library path to relative and auto-detect git