Change sourcing of /etc/default/plexmediaserver to be before if statment for createing L/AS directory, as custom use of variables in the preferences file will not be used for the if statement and empty folders will be created.