Apply directory macros and install license file to the proper directory