allows dst_dir to be configurable when installing custom package
and removes logic from template