Prefix "." appropriately to relative paths