Changed the fix_basis_dirs() function to only remove a single ../